﻿using NHibernate;
using NHibernate.Cfg;

namespace Mayfair.Core.Common.Transaction.NHibernate
{
    public class NHibernateUtils
    {
        public static Configuration GetConfig()
        {
            return NHibernateConnectionManager.getConfig();
        }

        public static ISession GetSession()
        {
            return NHibernateConnectionManager.GetCurrentSession();
        }
    }
}
